package pri.black.garden.biz;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
import pri.black.garden.domain.VegetablesInstance;
import pri.black.garden.service.IVegetablesInstanceService;

/**
 * gardenBiz业务层处理
 * 
 * @author black
 * @date 2025-01-21
 */
@Service
public class VegetablesInstanceBiz
{
    @Autowired
    private IVegetablesInstanceService vegetablesInstanceService;

    public IVegetablesInstanceService getService(){
        return vegetablesInstanceService;
    }

    /**
     * 新增VegetablesInstance
     */
    public boolean save(VegetablesInstance vegetablesInstance){
        return vegetablesInstanceService.save(vegetablesInstance);//看情况提取至controller中
    }

    /**
     * 更新VegetablesInstance
     */
    public boolean update(VegetablesInstance vegetablesInstance){
        return vegetablesInstanceService.updateById(vegetablesInstance);
    }
}
